import Layout from '@/page/index/';

export default [
  // ... 本地路由
  {
    path: '/dataIntegration',
    component: Layout,
    children: [
      {
        path: '/dataIntegration/collectionTask/create',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataIntegration/collectionTaskForm'),
        name: '创建数据采集任务'
      },
      {
        path: '/dataIntegration/collectionTask/update/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataIntegration/collectionTaskForm'),
        name: '修改数据采集任务'
      }
    ]

  },
  {
    path: '/dataAggregate',
    component: Layout,
    children: [
      {
        path: '/dataAggregate/dataAggregateTask/create',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataAggregate/dataAggregateTaskForm'),
        name: '创建汇聚任务'
      },
      {
        path: '/dataAggregate/dataAggregateTask/update/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataAggregate/dataAggregateTaskForm'),
        name: '修改汇聚任务'
      }
    ]

  },
  {
    path: '/dataShare',
    component: Layout,
    children: [
      {
        path: '/dataShare/create',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataShare/datashareForm'),
        name: '创建共享'
      },
      {
        path: '/dataShare/update/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataShare/datashareForm'),
        name: '修改共享'
      },
      {
        path: '/dataShare/detail/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataShare/datashareView'),
        name: '查看'
      },
      {
        path: '/dataShare/test/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataShare/datashareTest'),
        name: '测试'
      }
    ]

  },
  {
    path: '/dws',
    component: Layout,
    children: [
      {
        path: '/dws/datamodel/database/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataModel/data-base-list'),
        name: 'DataBase'
      },
      {
        path: '/dws/datamodel/table/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataModel/table-list'),
        name: 'table'
      },
      {
        path: '/dws/datamodel/table/info/:guid',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataModel/metainfo'),
        name: 'table'
      },
      {
        path: '/dws/dataread/database/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataRead/data-base-list'),
        name: 'DataReadBase'
      },
      {
        path: '/dws/dataread/table/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataRead/table-list'),
        name: 'DataReadTable'
      },
      {
        path: '/dws/dataread/table/info/:guid',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataRead/metainfo'),
        name: 'DataReadDetail'
      },
      {
        path: '/dws/datawrite/database/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataWrite/data-base-list'),
        name: 'DataWriteBase'
      },
      {
        path: '/dws/datawrite/table/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataWrite/table-list'),
        name: 'DataWriteTable'
      },
      {
        path: '/dws/datawrite/table/info/:guid',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dws/dataWrite/metainfo'),
        name: 'DataWriteDetail'
      },
      {
        path: '/dataMaintenance/table/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/dataMaintenance/table-list'),
        name: 'DataWriteTable'
      },
    ]

  },
  {
    path: '/quality',
    component: Layout,
    children: [
      {
        path: '/quality/errorNode/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/quality/errorNode'),
        name: '查看'
      }
    ]

  },
  {
    path: '/metadata',
    component: Layout,
    children: [
      {
        path: '/metadata/timerManage/:id',
        component: () => import( /* webpackChunkName: "views" */ '@/views/metadata/timerManage'),
        name: '查看'
      }
    ]

  },
]
